#/bin/sh
jarfolder=./org.eclipse.equinox.launcher.gtk.linux.loongarch64_1.2.1300.v20250212-0927
newjar=./org.eclipse.equinox.launcher.gtk.linux.loongarch64_1.2.1300.v20250212-0927.jar
mkdir -p temp && cd temp
cp -rf ../org.eclipse.equinox.launcher.gtk.linux.loongarch64/* ./
rm build.properties
jar cfm ../$newjar META-INF/MANIFEST.MF .
cd ../
mkdir -p $jarfolder && cd $jarfolder
jar xf ../$newjar
cd ../
rm -rf ./temp
rm -rf $newjar